﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="APIKey.aspx.cs" Inherits="Widget.Account.APIKey" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        API KEY
    </h2>
    <p>
       <%
           if (!User.Identity.IsAuthenticated)
           {
               %>

                [ <a href="~/Account/Login.aspx" id="HeadLoginStatus" runat="server">Log In</a>
                ]
          <% }
           else
           { %>
                <table>
                    <tr>
                        <td>
                            UserName:
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                   
                    <tr>
                        <td>
                            <asp:Button ID="btnGet" runat="server" Text="Get API Key" onclick="btnGet_Click" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtAPI" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            <%} %>
    </p>
</asp:Content>
